using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/module")]
    public class Module : EntityBase<Module>
    {
        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Name { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int OrderIndex { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        [Required]
        public int Type { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        [Required]
        public int MLevel { get; set; }
        /// <summary>
        /// 上级模块
        /// </summary>
        public Guid? ParentID { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        [StringLength(50)]
        public String Image { get; set; }
        ///// <summary>
        ///// 是否是叶节点
        ///// </summary>
        //public bool Leaf { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(100)]
        public String Description { get; set; }

        

    }
}
